#include<iostream>
#include<thread>



using namespace std;

void abc(int *a){
    cout<<"abc fuc aa = "<< *a <<endl;
    *a = 20;
    
}
int main(int argc,char **argv){

   int aa = 10;
   thread th(abc,&aa);
   cout<<" main aa = "<< aa <<endl;
   th.join();
   cout<<" main aa = "<< aa <<endl;

   return 0;
}